<?php
try{
	if(Authenticate::isRemote()){
        Authenticate::logoutRemote();
    }
    else {
        Authenticate::logout();
    }
	header("Location: old.php");
}catch(Exception $ex){
	Log::error($ex->getMessage());
	View::display('error', array('message'=>$ex->getMessage()));
	throw $ex;
}